package com.hunt.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BannerUpload implements Serializable {

    private String picId;
    private String picUrl;
    private Integer picOrder;
    private String description;
    private String releaseDate;

    public void setReleaseDate(Date releaseDate) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String str =format.format(releaseDate);
        this.releaseDate = str;
    }



}
